<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>DOM库</title>
  <script src="./dom3.js"></script>
  <style>
    .purple {
      color: rebeccapurple
    }
    .blue {
      color: blue;
    }
  </style>
</head>
<body>
  <div class="list">
    <p>1111</p>
    <p>2222</p>
    <p>3333</p>
    <p>444</p>
    <p class="p4">555</p>
  </div>
</body>
<script>
  // let a = "2";
  // $('p').addClass('purple')
  // $(".p4").addClass("blue")
  $('.list').find('p').eq(2).remove()
</script>
</html>